/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package br.pucrio.inf.les.SPLAnalyser.core.models.impactvisualizermodel.impl;

import br.pucrio.inf.les.SPLAnalyser.core.models.impactvisualizermodel.*;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class ImpactvisualizermodelFactoryImpl extends EFactoryImpl implements ImpactvisualizermodelFactory {
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ImpactvisualizermodelFactory init() {
		try {
			ImpactvisualizermodelFactory theImpactvisualizermodelFactory = (ImpactvisualizermodelFactory)EPackage.Registry.INSTANCE.getEFactory("http://impactvisualizermodel/1.0"); 
			if (theImpactvisualizermodelFactory != null) {
				return theImpactvisualizermodelFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new ImpactvisualizermodelFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ImpactvisualizermodelFactoryImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			case ImpactvisualizermodelPackage.RESULT_SET: return createResultSet();
			case ImpactvisualizermodelPackage.IMPACT_VISUALIZER_MODEL: return createImpactVisualizerModel();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ResultSet createResultSet() {
		ResultSetImpl resultSet = new ResultSetImpl();
		return resultSet;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ImpactVisualizerModel createImpactVisualizerModel() {
		ImpactVisualizerModelImpl impactVisualizerModel = new ImpactVisualizerModelImpl();
		return impactVisualizerModel;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ImpactvisualizermodelPackage getImpactvisualizermodelPackage() {
		return (ImpactvisualizermodelPackage)getEPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
	@Deprecated
	public static ImpactvisualizermodelPackage getPackage() {
		return ImpactvisualizermodelPackage.eINSTANCE;
	}

} //ImpactvisualizermodelFactoryImpl
